import { createApp } from 'vue'
import { createPinia } from 'pinia'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/font/iconfont.css'
import Echarts from "vue-echarts"
import * as echarts from "echarts"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from './router'

const pinia = createPinia()
const app=createApp(App)
app.use(ElementPlus).use(router).use(pinia)
app.component("v-chart", Echarts)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')